package com.lis.scf.repository;


import com.lis.scf.entity.Company;
import com.lis.scf.entity.EnterpriseInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface CompanyRepository extends JpaRepository<Company, Long> {

   boolean existsByUnifiedCreditCode( String unifiedCreditCode);

   Page<Company> findAll(Specification<Company> spec, Pageable pageable);
}
